package com.etlmaster.executor.steps.func;


import com.etlmaster.executor.StepMeta;
import com.etlmaster.executor.annotation.StepInstruction;
import com.etlmaster.executor.utils.StepState;

/**
 * 
 * @author MeiKefu
 * @date 2014-8-1
 */
@StepInstruction("print")
public class PrintStep extends FuncStep {
	
	private PrintStepMeta meta;
	
	public PrintStep(StepMeta meta){
		super(meta);
		this.meta = (PrintStepMeta)meta;
	}
	
	@Override
	protected int handle() {
		meta.log("INFO","打印内容：{}",meta.variableSubstitution(meta.getMessage()));
		return StepState.RUNNING_SUCCESSED;
	}

	@Override
	public boolean stop() {
		// TODO Auto-generated method stub
		return false;
	}

}
